package com.hz.mapper;

import com.hz.pojo.File;
import com.hz.pojo.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper {

    @Insert("insert into garbage.login(username,password) value (#{username},#{password})")
    void modify(User user);

    @Select("select * from garbage.login where username = #{username} and password = #{password}")
    User getByUsernameAndPassword(User user);

    @Insert("insert into garbage.file(msg) value (#{msg})")
    void feedback(File file);
}
